package com.yfs.cloud.commons;

import io.swagger.annotations.ApiModelProperty;

/**
* @Company: 影法師工作室
* @Description: 查询封装
* @author 影法師  
* @date 2020年8月24日 下午4:12:44 
* @version V1.0
 */
public class Query<T> {

	@ApiModelProperty(value = "第几页, 从 1 开始")
	private Integer pageNum;

	@ApiModelProperty(value = "每页多少条数据")
	private Integer pageSize;

	@ApiModelProperty(value = "查询实体")
	private T query;

	@ApiModelProperty(value = "排序字段传参")
	private Sort[] sorts;

	@ApiModelProperty(value = "模糊查询传参")
	private Like[] likes;

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public T getQuery() {
		return query;
	}

	public void setQuery(T query) {
		this.query = query;
	}

	public Sort[] getSorts() {
		return sorts;
	}

	public void setSorts(Sort[] sorts) {
		this.sorts = sorts;
	}

	public Like[] getLikes() {
		return likes;
	}

	public void setLikes(Like[] likes) {
		this.likes = likes;
	}

}
